feat: add SubsetSum → Partition reduction (#973) [full pipeline]#989
Closed
feat: add SubsetSum → Partition reduction (#973) [full pipeline]#989
Conversation
Typst: 3-case construction (Σ=2T, Σ>2T, Σ<2T) + Correctness (⟹ + ⟸) + Extraction + Overhead + YES/NO examples Constructor: 47,233 checks, 0 failures (exhaustive n ≤ 5, 7 sections) Adversary: 236,283 checks, 0 failures (independent impl + hypothesis) Cross-comparison: 690 instances, all agree Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Implemented via /verify-reduction -> /add-reduction pipeline. 3-case padding construction (Sigma=2T, Sigma>2T, Sigma<2T). Verification: 284K+ Python checks preceded this Rust impl. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #989 +/- ##
========================================
Coverage 98.03% 98.03%
========================================
Files 784 786 +2
Lines 82310 82432 +122
========================================
+ Hits 80695 80815 +120
- Misses 1615 1617 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SubsetSum → Partition via the full
/verify-reduction→/add-reductionpipeline.3-case padding construction: Σ=2T (no padding), Σ>2T (d=Σ-2T), Σ<2T (d=2T-Σ).
This gives Partition its first incoming reduction, connecting it to the reduction graph.
Pipeline
Files
src/rules/subsetsum_partition.rs— reduction (+160 lines)src/unit_tests/rules/subsetsum_partition.rs— 5 tests (+90 lines)docs/paper/verify-reductions/— artifacts removed (-6003 lines)Net: +252 / -6003 lines (artifacts are scaffolding, only Rust remains)
Test plan
cargo test subsetsum_to_partition— 5/5 passcargo clippy— cleanCloses #973
🤖 Generated with Claude Code